package chess;

public class Piece {
	int x;
	int y;
	boolean white;
	String type;

	public Piece(int x, int y, boolean white, String type) {
		this.x = x;
		this.y = y;
		this.white = white;
		this.type = type;
	}
	
	public int getX() {
		return x;
	}
	
	public int getY() {
		return y;
	}
	
	public boolean isWhite() {
		return white;
	}
	
	public String getType() {
		return type;
	}

	public String stringRepresentation() {
		return String.format("(%d, %d) %s %s", x, y, white ? "white" : "black", type);
	}
}